package cn.myspringboot.user.mapper;

import cn.myspringboot.user.domain.User;
import cn.myspringboot.user.query.UserQuery;

import java.util.List;

public interface UserMapper {
    User findById(Long id);

    List<User> findAll();

    void add(User user);

    void update(User user);

    void deleteById(Long id);

    void batchDelete(List<Long> ids);

    List<User> getUserByPage(UserQuery query);
}